﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using ebcmassendaten.specifications;

namespace ebcmassendaten.pagebuilder
{
    public class PageBuilder : IPageBuilder
    {
        #region IPageBuilder Members

        public void In_Record(ebcmassendaten.messages.Record msg)
        {
            Trace.TraceInformation("The page builder received a message!");
            var tmp = new ebcmassendaten.messages.Page();

            tmp.Records = new[] {msg};

            Out_Page( tmp );
        }

        public event Action<ebcmassendaten.messages.Page> Out_Page;

        #endregion
    }
}
